using UnityEngine;

public class ButBuyProductCoinsByGoldConfirm : MonoBehaviour
{
	[SerializeField]
	private UILabel countCash;

	[SerializeField]
	private UILabel countGold;

	[SerializeField]
	private GameObject blockScreen;

	private EventDelegate.Callback _callback;

	public void Show(int cash, int gold, EventDelegate.Callback callback)
	{
		countCash.text = cash.ToString();
		countGold.text = gold.ToString();
		blockScreen.SetActive(true);
		_callback = callback;
	}

	private void OnClick()
	{
		if (_callback != null)
		{
			_callback();
		}
		blockScreen.SetActive(false);
	}
}
